<?php get_header(); ?>

<div id="content">

	<div class="content-wrapper">

		<?php get_sidebar(); ?>

		<div id="main"><div class="inner">

			<?php if (have_posts()) : ?>

				<h2 class="pagetitle">Resultados de la b&uacute;squeda para &ldquo;<?php echo $_GET['s']; ?>&rdquo;</h2>

				<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>

				<?php while (have_posts()) : the_post(); ?>

					<div <?php post_class() ?> id="post-<?php the_ID(); ?>">

						<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>

						<?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>

						<div class="entry">

							<?php the_excerpt(); ?>

						</div>

					</div>

				<?php endwhile; ?>

			<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>

			<?php else : ?>

				<h2>No se encontraron resultados para &ldquo;<?php echo $_GET['s']; ?>&rdquo;</h2>

			<?php endif; ?>
			
		</div></div>

	</div>

</div>

<?php get_footer(); ?>
